<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第28题</title>
    <script>
        // 一共100个水果
        for (var x = 0; x <= 100 ; x++) {
            for (var y = 0 ; y <= 100 ; y++) {
                for (var z = 0 ; z <= 100 ; z++){
                    if (3 * x + 2 * y + 1 * z == 200 && x + y + z == 100) {
                        console.log("苹果的个数" + x, "鸭梨的个数" + y, "桃子的个数" + z);
                    }
                }
            }
        }
    </script>
</head>
<body>
    
</body>
</html>